package com.qf.weapon;

/**
 * 弓
 */
public class Archer extends Weapon{

    private int range;

    public int getRange() {
        return range;
    }

    public void setRange(int range) {
        this.range = range;
    }

    public Archer() {

    }

    public Archer(String name, int type, int atk, int range) {
        super(name, type, atk);
        this.range = range;
    }

    @Override
    public int caculateDamage(HeroPlus heroPlus) {
        return heroPlus.getAgile()+this.getAtk();
    }
}
